import { request } from './index'

export function GetHomeData () { // 获得banner和swiper数据
  return request({
    url: '/api/index',
    method: 'get'
  })
}

export function GetHomeGoods (type = 'sales', page = 1) { // 获得tab选项卡数据
  return request({
    url: `/api/index?${type}=${1}&page=${page}`,
    method: 'get'
  })
}
